﻿@{
    ViewBag.Title = "AboutTheApplicants";
    Layout = this.ViewData["_Layout"].ToString();
}
<h1>
    About The Applicant(s)
</h1>
<div id="applicantDetailsDIV">
</div>
<div id="applicantListDIV">
</div>
<div class="bottombtns">
    <a href="@Url.Action("Index")" class="green2" style="float: left">BACK</a>  <a href="#" id="aNext" class="green2"
            style="float: right">NEXT</a><a href="#"
        id="aSava" class="green2" style="float: right">SAVE</a>
</div>

<script src="@Url.Content("~/Scripts/jQuery.gbfSubmit.js")" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#process #AboutTheApplicants").addClass("activedprocess");
        $("#process #AboutTheApplicants a").addClass("activedprocesstxt");

        $("#applicantListDIV").load('@Url.Action("UApplicantList")');
        $("#applicantDetailsDIV").load('@Url.Action("UApplicantDetail")');

        $("#aSava").click(function () {
            submitAndRedirect("#applicantDetailsDIV","currenturl");
        });

        $("#aNext").click(function () {
            submitAndRedirect("#applicantDetailsDIV", '@Url.Action("AboutYourBusiness")');
        });
    });
</script>
